iframe,
table {
  margin-bottom: 30px;
}
.content.active,
.menu-item.active .submenu,
.nav-menu a,
.subtabcontent.active,
video {
  display: block;
}
.accordion.active::after,
.menu-item.active .submenu-indicator {
  transform: rotate(180deg);
}
#search-input,
.button-link a,
.main-site-title p,
.suggestions-box {
  box-sizing: border-box;
}
body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.submenu,
ul {
  padding-left: 20px;
}
.main-site-title {
  display: flex;
  align-items: center;
  font-family: Simpsons;
  background: #ff0;
  border: 4px solid #000;
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
  height: 12%;
  justify-content: flex-start;
}
#times-table tr:nth-child(2n) td,
.subtab,
.tab,
.tab2 {
  background-color: #f1f1f1;
}
.subtab,
.tab,
.tab2,
table,
td,
th {
  border: 1px solid #000;
}
.main-site-title img {
  width: 9%;
  min-width: 50px;
  margin-right: 3%;
}
.main-site-title p {
  font-size: 36px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: scale(1);
  text-align: left;
  padding-left: 10px;
  flex-grow: 1;
}
.button-link a,
.content,
.content-container,
.links-container a,
.page-title,
.subtitle,
.tableau,
.video-item,
td,
th {
  text-align: center;
}
@media (max-width: 768px) {
  .main-site-title p {
    font-size: 18px;
  }
  .main-site-title {
    height: 8%;
  }
  .main-site-title img {
    width: 15%;
    margin-right: 2%;
  }
}
@media (max-width: 480px) {
  .main-site-title p {
    font-size: 22px;
  }
}
@font-face {
  font-family: Simpsons;
  src: local("Simpsons"),
    url("Simpsons.otf") format("opentype") tech(color-COLRv1);
}
@font-face {
  font-family: Wayoshi;
  src: local("Wayoshi"),
    url("wayoshi.ttf") format("truetype") tech(color-COLRv1), url("wayoshi.ttf");
}
@font-face {
  font-family: Mario256;
  src: local("Mario256"),
    url("Mario256.ttf") format("truetype") tech(color-COLRv1),
    url("Mario256.ttf");
}
.simpsons-font {
  font-family: Simpsons;
  flex-direction: row;
}
.subtab,
.subtab button {
  justify-content: center;
}
.page-title {
  font-family: Simpsons;
  font-size: 50px;
  padding-right: 15px;
  margin: 30px 0 15px;
}
.paragraphe,
li,
td,
th {
  font-size: 20px;
}
.search-form {
  position: absolute;
  top: 30px;
  width: 50px;
  height: 50px;
  margin-left: auto;
  left: 400px;
}
.menu-container,
.video-container {
  position: relative;
}
table {
  line-height: 25px;
  border-collapse: collapse;
  background-color: #fff;
  float: right;
}
td {
  line-height: 35px;
  height: 15px;
  width: 10%;
}
ul {
  list-style-position: inside;
}
.paragraphe {
  margin: 0 15px 0 91px;
  line-height: 27px;
}
li {
  text-align: left;
  margin-top: 3px;
}
li ul {
  margin-top: 15px;
  font-size: 30px;
}
.subtab,
.tab,
.tab2 {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.subtab {
  display: flex;
}
.subtab button,
.tab button,
.tab2 button {
  background-color: inherit;
  border: 1px solid #000;
  cursor: pointer;
  padding: 25px;
  transition: 0.3s;
  display: block;
}
.tab button {
  float: left;
  width: 16.66%;
}
.tab2 button {
  float: left;
  font-size: 25px;
  width: 49.9%;
}
.subtab button {
  font-size: 30px;
  font-family: Mario256;
  width: 50%;
}
.subtab button:hover,
.tab button:hover,
.tab2 button:hover {
  background-color: #ff0;
}
.subtab button.active,
.tablinks.active {
  background-color: grey;
  pointer-events: none;
}
.subtabcontent,
.tabcontent {
  display: none;
  margin-top: 40px;
}
.subtabcontent {
  border: 3px solid;
  border-radius: 30px;
  margin: 15px 40px 20px;
  overflow: auto;
}
.content,
.panel {
  overflow: hidden;
}
#tab1 {
  border-color: #ff0;
}
#tab2 {
  border-color: green;
}
.subtitle {
  font-size: 40px;
  font-family: Wayoshi;
}
button {
  background: 0 0;
  border: none;
  cursor: pointer;
}
button:active {
  background-color: #ff0;
  border-radius: 10px;
}
tr {
  background-color: #add8e6;
}
video {
  margin: 0 auto 30px;
  border: 2px solid #000;
  border-radius: 10px;
}
.scroller {
  height: 30px;
}
.button-retour {
  width: 40px;
  margin: 0 10px;
}
.button-return1,
.button-return2 {
  border-radius: 10px;
  border: 1px solid #000;
  margin-bottom: 10px;
  display: flex;
  width: 210px;
}
.button-return1 {
  margin-left: 10px;
  float: left;
}
.button-return2 {
  margin-right: 10px;
  float: right;
}
.button-return1:hover,
.button-return2:hover {
  background-color: #ff0;
  cursor: pointer;
  transform: scale(1.05);
}
hr {
  color: red;
  width: 80%;
}
.subtab button .tab2,
.tab button {
  padding: 30px;
  font-size: 22px;
}
.tableau,
table {
  width: 90%;
}
.video-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.menu-icon {
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 1000;
  border: 3px solid #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  transition: top 0.3s ease-in-out, left 0.3s ease-in-out;
}
.menu-icon.fixed {
  position: fixed;
  top: 10px;
  left: 20px;
  transition: top 0.3s ease-in-out;
}
.nav-menu {
  position: fixed;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100%;
  background-color: #333;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: left 0.3s ease-in-out;
}
.nav-menu.open {
  left: 0;
}
.nav-menu ul {
  list-style-type: none;
  padding: 0;
}
.nav-menu li {
  border-bottom: 1px solid #555;
  position: relative;
}
.nav-menu a {
  padding: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.3s, padding-left 0.3s;
}
.nav-menu a:hover {
  background-color: #555;
  padding-left: 30px;
}
.submenu-indicator {
  font-size: 14px;
  margin-left: 10px;
  transition: transform 0.3s;
}
.submenu {
  display: none;
  list-style-type: none;
}
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 80%;
  margin: auto 10%;
  border: none;
  outline: 0;
  font-size: 15px;
  transition: 0.4s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.accordion:hover,
.active {
  background-color: #ccc;
}
.button-link,
.panel {
  background-color: #fff;
}
.button-link:hover,
.cars-button:hover,
.links-container a:hover {
  background-color: #d3d3d3;
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
}
.panel {
  padding: 0 18px;
  max-height: 0;
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
  transition: max-height 0.4s ease-out;
}
#GoogleDrive,
.button-link {
  border: 2px solid #000;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.panel img {
  max-width: 100%;
  height: auto;
}
.panel p {
  margin: 10px 0;
}
.accordion::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 25px;
  margin-left: auto;
  transition: transform 0.4s;
}
.accordion.active::after {
  content: "\f077";
}
.panel.show {
  max-height: 500px;
}
.video-container-setup {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.video-item {
  width: 45%;
}
.button-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 80%;
  margin: 0 auto;
  padding: 20px;
}
.button-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  min-height: 100px;
  height: auto;
  margin: auto;
  border-radius: 15px;
}
#GoogleDrive,
.button-link a {
  justify-content: center;
  display: flex;
}
.button-link:active {
  background-color: #b0b0b0;
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.button-link a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-decoration: none;
  color: #000;
  padding: 20px;
  font-size: 22px;
  font-family: Mario256, sans-serif;
  align-items: center;
}
.cars-button,
.links-container a {
  padding: 10px 20px;
  color: #000;
  background-color: #fff;
}
@media (max-width: 768px) {
  .button-links {
    grid-template-columns: 1fr;
  }
}
#GoogleDrive {
  align-items: center;
  width: 300px;
  height: 100px;
  margin: 0 auto;
  border-radius: 15px;
  background-color: #fff;
}
.tips-list {
  list-style-type: disc;
  margin-left: 20px;
  line-height: 1.8;
}
.tips-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.links-container a {
  display: inline-block;
  justify-content: center;
  align-items: center;
  width: 250px;
  text-decoration: none;
  font-size: 16px;
  border: 2px solid #000;
  border-radius: 5px;
  margin: 10px auto;
  transition: 0.3s;
}
.links-container a:hover {
  color: #000;
}
.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}
.content-container {
  max-width: 1000px;
  margin: 20px auto;
  position: relative;
}
.content {
  display: none;
  margin-bottom: 20px;
}
.content img {
  border: 5px solid #000;
  border-radius: 10px;
  width: calc(100% - 10px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.cars-button {
  border: 2px solid #000;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 10px;
  width: 30%;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.search-container {
  position: relative;
  width: 300px;
  margin: 0 auto;
  padding-top: 50px;
}
#search-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}
.suggestion {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}
.suggestion img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: 20%;
  border-radius: 2px;
  margin: 0;
}
.suggestion span {
  flex: 1;
  margin-left: 10px;
}
.suggestion:hover {
  background-color: #f0f0f0;
}
#Bonus\ Missions,
#Story\ Missions,
#Street\ Races {
  text-align: center;
  width: 90%;
  margin: auto;
}
.title {
  font-size: 50px;
  margin-bottom: 30px;
  margin-top: 20px;
}
.level ul,
.levels {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mission-btn {
  display: block;
  width: 90%;
  max-width: 800px;
  margin: 10px auto;
  padding: 15px;
  font-size: 25px;
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s, font-size 0.3s;
}
.dropdown-title,
.level h3 {
  font-size: 1.8em;
  text-align: center;
}
#times-table td,
.dropdown-content {
  background-color: #f9f9f9;
}
.mission-btn:hover {
  transform: scale(1.05);
  background-color: #ff0;
  font-size: 27px;
}
.mission-btn:disabled {
  background-color: #d3d3d3;
  border-color: gray;
  cursor: not-allowed;
}
.level h3 {
  margin: 0;
}
.level {
  border: 2px solid #ccc;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.level.open .dropdown-content {
  max-height: 1000px;
  border-radius: 0 0 8px 8px;
}
.dropdown-title {
  cursor: pointer;
  margin: 0;
  padding: 10px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ccc;
  border-radius: 8px 8px 0 0;
  user-select: none;
}
#times-table tr:hover td,
.level.open .dropdown-title {
  background-color: #ddd;
}
.sort-button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #ff0;
  color: #fff;
  transition: background-color 0.3s;
}
.sort-button:hover {
  background-color: #45a049;
}
.sort-button:active {
  background-color: #388e3c;
}
.table-container {
  overflow-x: auto;
  width: 90%;
}
#times-table {
  width: 100%;
  border-radius: 30px;
  margin-top: 20px;
  table-layout: fixed;
  font-size: 14px;
}
#times-table td,
#times-table th {
  text-align: center;
  border: 1px solid #ddd;
  padding: 8px;
}
#times-table th {
  background: #d3d3d3;
  color: #000;
}
.sort-buttons-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  width: 85%;
}
.toggle-container,
.toggle-label {
  display: flex;
  align-items: center;
}
.toggle-container {
  justify-content: flex-start;
  gap: 10px;
}
.toggle-text-left {
  font-size: 16px;
  user-select: none;
  margin-right: 130px;
}
.toggle-label {
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.toggle-label:hover {
  transform: scale(1.1);
}
.toggle-label:hover .toggle-text {
  transform: scale(1.15);
  transition: transform 0.3s ease-in-out;
  transform-origin: left;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.4s, transform 0.3s ease-in-out;
}
.toggle-switch::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.4s;
}
.toggle-label input {
  display: none;
}
input:checked + .toggle-switch {
  background-color: #2196f3;
}
input:checked + .toggle-switch::before {
  transform: translateX(26px);
}
.toggle-text {
  font-size: 16px;
  user-select: none;
  transition: transform 0.3s ease-in-out;
  transform-origin: left;
}
.kofi-custom-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fcbf47;
  color: #000;
  font-family: "Comic Sans MS", Simpsons, sans-serif;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 999;
}
.kofi-custom-button:hover {
  transform: scale(1.1);
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.5);
}
.kofi-logo {
  height: 20px;
}

table td:first-child, table th:first-child {
    font-weight: bold;
    background-color: #f2f2f2;
    text-align: center;
    width: 50px; /* Pour mieux gérer la taille des numéros */
  }
  